//
//  HRZBaseSetViewController.m
//  EMarket
//
//  Created by 石头 on 2018/5/8.
//  Copyright © 2018年 好日子. All rights reserved.
//

#import "HRZBaseSetViewController.h"

#import "HRZTabBarController.h"


@interface HRZBaseSetViewController ()

@end

@implementation HRZBaseSetViewController


#pragma mark - LifeCyle

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.isHidenNaviBar = YES;
    
    [self setUpAcceptNote];
    
}

- (void)setUpAcceptNote {
    WEAKSELF
    [[NSNotificationCenter defaultCenter] addObserverForName:LOGINSELECTCENTERINDEX object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * _Nonnull note) {
        weakSelf.tabBarController.selectedIndex = HRZTabBarControllerType_Person;   //  跳转到我
    }];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    self.isHidenNaviBar = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do view setup here.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
}

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}


@end
